<?php

namespace App\Model\Foundation;


use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class TeacherEducation extends Model
{
    public $primaryKey = 'id';

    public $timestamps = false;

    protected $table = 'teachereducations';

    protected $fillable = [
        'begindate',
        'enddate',
        'schoolname',
        'diplomas',
        'remark',
    ];

    function teacher()
    {
        return $this->belongsTo('App\Model\Foundation\Teacher', 'teacheruid');
    }


}
